package com.hualan.web;

import com.hualan.service.GongsiService;
import com.hualan.util.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/gongsi")
public class GongsiController {
    @Autowired
    private GongsiService gongsiService;

    @RequestMapping("/listAll")
    public ResultEntity listAll(){
        return ResultEntity.ok(gongsiService.listAll());
    }
}
